import request from '@/utils/request'



export function getCatalogList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/supply/admin/catalog/getList',
    method: 'post',
    data: query
  })
}   

export function saveCatalog(query) {
  return request({
    url: '/supply/admin/catalog/save',
    method: 'post',
    data: query
  })
} 

export function copyCatalog(query) {
  return request({
    url: '/supply/admin/catalog/copy',
    method: 'post',
    data: query
  })
}

export function removeCatalog(query) {
  return request({
    url: '/supply/admin/catalog/remove',
    method: 'post',
    data: query
  })
}
export function getCatalogDetail(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/supply/admin/catalog/getDetail',
    method: 'post',
    data: query
  })
}